{% extends "account/base.html" %}
{% load static %}

{% block content %}
	<form action="" method="post" id="account-form">
		{% csrf_token %}

		<section id="account-locale" class="box-section">
			<h3>Replays</h3>
			<div class="inner">
				<p>
					Choose your preferred replay language from the ones that are supported by Hearthstone.
				</p>
				<p>
					{{ form.locale }}
				</p>
				<p class="help-block">
					This currently only affects cards in the replays, not the replayer or the site itself.
				</p>
				<hr/>
				<p>
					Enable or disable auto-play of replays on the site.
				</p>
				<p>
					<label>
						{{ form.joust_autoplay }}
						Automatically play replays when viewing them
					</label>
				</p>
			</div>
		</section>

		<section id="account-privacy" class="box-section">
			<h3>Privacy</h3>
			<div class="inner">
				<p>
					You can currently choose between two privacy options:
				</p>
				<dl class="dl-horizontal">
				  <dt>Public</dt>
				  <dd>Your replays may be appear in listings such as <em>Related games</em></dd>
				  <dt>Unlisted</dt>
				  <dd>Your replays will not appear in such listings. Anyone you share the link to a specific replay with will still be able to view it, though.</dd>
				</dl>
				<p>
					Changing this option will only affect newly uploaded replays.
				</p>
				<p>
					{{ form.default_replay_visibility }}
				</p>
				<p class="help-block">
					You can always change the visibility for a specific replay on the replay's page.
				</p>
			</div>
		</section>

		<section id="account-statistics" class="box-section">
			<h3>Statistics contributions</h3>
			<div class="inner">
				<p>
					We regularly analyze the Hearthstone games uploaded to HSReplay.net and publish
					our findings on the <a href="https://hearthsim.info/">HearthSim Blog</a> or on
					partner websites.<br/>
					<strong>The data is always entirely anonymous and aggregate.</strong>
				</p>
				<p>
					If you want your data to be excluded from these public results, you can check the option
					below.
				</p>
				<p>
					<label>
						{{ form.exclude_from_statistics }}
						Exclude my data from public statistics
					</label>
				</p>
			</div>
		</section>

		<button type="submit" class="btn btn-primary right">Update settings</button>
	</form>
{% endblock %}
